﻿using Adnc.Shared.RpcServices.Rtos;
using Adnc.Shared.RpcServices.Rtos.Pay;
using Refit;
using System.Threading.Tasks;

namespace Adnc.Shared.RpcServices.Services
{
    public interface IPayRpcService : IRpcService
    {
        /// <summary>
        /// 创建支付单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [Post("/pay/Payment/_orderPay")]
        [Headers("Authorization: Bearer")]
        Task<ApiResponse<long>> OrderPayCreate(OrderPayCreateRto input);

        
        /// <summary>
        /// 根据ID获取银行卡信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [Get("/pay/Brank/_bankInfor")]
        Task<ApiResponse<BankCardRto>> GetBankCardById([AliasAs("Value")] long Id);
    }
}
